﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Controls/MasterPage.master" AutoEventWireup="true" CodeFile="News.Detail.aspx.cs" Inherits="Pages_News_Detail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="cot_trai">
        <div class="box1">
            <div class="title1">
                <asp:HyperLink ID="hlCate" runat="server">Tin tức</asp:HyperLink></div>
            <div class="clear">
            </div>
            <div class="dong2">
                <h1>
                    <asp:Literal ID="lblTitle" runat="server"></asp:Literal></h1>
                <span>
                    <asp:Label ID="lblTime" runat="server" Text=""></asp:Label></span>
                <asp:Literal ID="ltrContent" runat="server"></asp:Literal>
            </div>
            <!--box1_c2-->
            <div class="tab"><strong>Tags: </strong><asp:Literal ID="ltrTags" runat="server"></asp:Literal></div>
            <div class="tab"><strong>Lượt xem: </strong><asp:Label ID="lblHits" runat="server" Text="0"></asp:Label></div>
            <div style="text-align:center; margin: 10px 0 10px 0;"><img src="http://songtre.tv/wmedia/2013/04/08/8d5579021_st_ad.jpg" border="0" /></div>
            <asp:Panel ID="panelComment" runat="server">
            <div class="ykien">Ý KIẾN BẠN ĐỌC</div>
            <asp:Repeater ID="rptCommentList" runat="server">
                <ItemTemplate>
                    <div class="ykien_1">
                        <div class="talks2_acc"><strong><%# Eval("Email")%></strong><span><%# Eval("CreatedTime", "{0:HH'h'mm dd/MM/yyyy}")%></span></div>
                        <p><%# Eval("Content")%></p>
                    </div>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <div class="ykien_2">
                        <div class="talks2_acc"><strong><%# Eval("Email")%></strong><span><%# Eval("CreatedTime", "{0:HH'h'mm dd/MM/yyyy}")%></span></div>
                        <p><%# Eval("Content")%></p></p>
                    </div>
                </AlternatingItemTemplate>
            </asp:Repeater>
            </asp:Panel>

            <div class="box_ykien">
                <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
            </div>
            <div class="box_ykien">
                <asp:TextBox ID="txtContent" CssClass="box_ykien_textarea" TextMode="MultiLine" Rows="6" runat="server"></asp:TextBox>
            </div>
            <div class="box_ykien">
                <asp:TextBox ID="txtCaptcha" style="text-transform:uppercase;" runat="server"></asp:TextBox> <img alt="loading..." src="/Handler/captcha.ashx?0.4892926585044838" id="imgCaptcha" />
            </div>
            <div class="box_ykien">
                <asp:Button ID="btComment" runat="server" Width="120px" CssClass="box_ykien_button" OnClick="btComment_Click" Text="Gửi thông tin" />
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
            <div class="tin_cu">
                CÁC TIN ĐÃ ĐĂNG</div>
            <asp:Repeater ID="rptNewList" runat="server">
                <ItemTemplate>
                    <div class="h_dong3">
                        <a href="<%#Eval("Url") %>">
                            <%#Eval("Title") %>
                            (<%#Eval("PublishedTime", "{0:dd/MM/yyyy}") %>)</a>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <div class="clear">
            </div>
            <div class="clear">
            </div>
        </div>
        <!--box1-->
    </div>
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtFullName" WatermarkText="Họ tên" />
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtEmail" WatermarkText="Email" />
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="txtContent" WatermarkText="Nội dung phản hồi" />
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="txtCaptcha" WatermarkText="Mã xác nhận" />

<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Họ tên quá ngắn!"
    Display="None" ControlToValidate="txtFullName" ValidationExpression=".{4}.*"></asp:RegularExpressionValidator>
<ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"
    Width="160px" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidator1" WarningIconImageUrl="" />

<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Nội dung quá ngắn!"
    Display="None" ControlToValidate="txtContent" ValidationExpression=".{4}.*"></asp:RegularExpressionValidator>
<ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3"
    Width="160px" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidator3" WarningIconImageUrl="" />

<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="Mã bảo vệ không chính xác!"
    Display="None" ControlToValidate="txtCaptcha" ValidationExpression=".{5}.*"></asp:RegularExpressionValidator>
<ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender4"
    Width="160px" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidator4" WarningIconImageUrl="" />

 <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ErrorMessage="Email không hợp lệ!" ControlToValidate="txtEmail" Display="None"
             ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
<ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender5"
    Width="160px" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidator5" WarningIconImageUrl="" />

<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txtFullName" Display="None" ErrorMessage="Bạn cần nhập họ tên!" />
<ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender6" WarningIconImageUrl="" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator1" />        

<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="txtEmail" Display="None" ErrorMessage="Bạn cần nhập email!" />
<ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender7" WarningIconImageUrl="" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator2" />        

<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="txtContent" Display="None" ErrorMessage="Bạn cần nhập nội dung phản hồi!" />
<ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2" WarningIconImageUrl="" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator3" />        

<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ControlToValidate="txtCaptcha" Display="None" ErrorMessage="Bạn cần nhập mã bảo vệ!" />
<ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender8" WarningIconImageUrl="" HighlightCssClass="validatorCalloutHighlight" TargetControlID="RequiredFieldValidator4" />        
</asp:Content>
